Skip to content

Instantly share code, notes, and snippets.

@LukasMFR
LukasMFR / chatgpt-conversation-exporter.js
Created December 12, 2025 12:36
JavaScript snippet to export a ChatGPT conversation from the web UI to a clean Markdown file, with correct user/assistant attribution, code block preservation, and basic media placeholders. Designed to be run directly in the browser console (Safari/Chrome/Firefox).
(() => {
function formatDate(date = new Date()) {
return date.toISOString().split("T")[0];
}
function escapeMarkdown(text) {
return text
.replace(/\\/g, "\\\\")
.replace(/\*/g, "\\*")
.replace(/_/g, "\\_")
@karpathy
karpathy / microgpt.py
Last active February 20, 2026 21:08
microgpt
"""
The most atomic way to train and run inference for a GPT in pure, dependency-free Python.
This file is the complete algorithm.
Everything else is just efficiency.
@karpathy
"""
import os # os.path.exists
import math # math.log, math.exp
@br3ndonland
br3ndonland / github-actions-notes.md
Last active February 20, 2026 21:07
Getting the Gist of GitHub Actions
@Klerith
Klerith / default-parties.data.ts
Created December 20, 2025 16:55
Partidos políticos iniciales
import type { PoliticalParty } from '../types';
import { generateUuid } from '../utils/generate-uuid';
const defaultParties = [
{
name: 'Partido Rojo',
color: 'rgba(220, 53, 69, 0.2)',
borderColor: 'rgb(220, 53, 69)',
votes: 42,
},
@iam-veeramalla
iam-veeramalla / openclaw_with_ollama.md
Created February 15, 2026 11:26
openclaw with ollama (Zero cost AI Assistant)

OpenClaw configuration with Ollama

Install OpenClaw

curl -fsSL https://openclaw.ai/install.sh | bash

Install Ollama

curl -fsSL https://ollama.com/install.sh | sh

@mxsxs2
mxsxs2 / alwaysshowtooltipplugin.ts
Created September 29, 2025 13:26
Plugin to always show tooltips for chart.js charts
import type {
Chart,
ChartType,
Plugin,
ChartConfiguration,
VisualElement,
} from 'chart.js'
export interface AlwaysShowTooltipPluginOptions {
color?: string
@mberman84
mberman84 / oc.md
Created February 16, 2026 19:42
OpenClaw Prompts

OpenClaw Prompts - Build Your Own AI Assistant

Prompts to recreate each piece of the OpenClaw system. Use these with any AI coding assistant.


1. Personal CRM "Build a personal CRM that automatically scans my Gmail and Google Calendar to discover contacts from the past year. Store them in a SQLite database with vector embeddings so I can query in natural language ('who do I know at NVIDIA?' or 'who haven't I talked to in a while?'). Auto-filter noise senders like marketing emails and newsletters. Build profiles for each contact with their company, role, how I know them, and our interaction history. Add relationship health scores that flag stale relationships, follow-up reminders I can create, snooze, or mark done, and duplicate contact detection with merge suggestions. Link relevant documents from Box to contacts so when I look up a person, I also see related docs."

2. Meeting Action Items (Fathom)

@hirrolot
hirrolot / CoC.ml
Last active February 20, 2026 20:59
How to implement dependent types in 80 lines of code
type term =
| Lam of (term -> term)
| Pi of term * (term -> term)
| Appl of term * term
| Ann of term * term
| FreeVar of int
| Star
| Box
let unfurl lvl f = f (FreeVar lvl)
@fl64
fl64 / books.md
Last active February 20, 2026 20:59
books